package com.evision.webcrawler.baidu.url;

import com.evision.webcrawler.baidu.BasicWord;
import com.evision.webcrawler.baidu.RequestUrl;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * 
 * @author xiang
 * 图像信息
 *
 */
public class ImageInfoUrl extends RequestUrl{
	private Long imgId; 							//图像数据库ID
	private String fromURL;							//图像所在页面链接
	private String fromURLHost;						//图像来源网站链接
	private String fromPageSummary;					//图像概要介绍
	private Date stamp;								//抓取时间戳
	private String localURL;						//图像本地存储路径根路径
	private BasicWord word;							//查询关键词信息

	@JsonProperty("objURL")
	public String getUrl() {
		return super.getUrl();
	}
	@JsonProperty("objURL")
	public void setUrl(String url) {
		super.setUrl(url);
	}
	
	@JsonProperty("imgId")
	public Long getImgId() {
		return imgId;
	}
	@JsonIgnore
	public void setImgId(Long imgId) {
		this.imgId = imgId;
	}
	
	@JsonProperty("fromURL")
	public String getFromURL() {
		return fromURL;
	}
	@JsonProperty("fromURL")
	public void setFromURL(String fromURL) {
		this.fromURL = fromURL;
	}
	
	@JsonProperty("fromURLHost")
	public String getFromURLHost() {
		return fromURLHost;
	}
	@JsonProperty("fromURLHost")
	public void setFromURLHost(String fromURLHost) {
		this.fromURLHost = fromURLHost;
	}
	
	@JsonProperty("fromPageTitle")
	public String getFromPageSummary() {
		return fromPageSummary;
	}
	@JsonProperty("fromPageTitle")
	public void setFromPageSummary(String fromPageSummary) {
		this.fromPageSummary = fromPageSummary;
	}
	
	@JsonProperty("ParseTime")
	public Date getStamp() {
		return stamp;
	}
	@JsonIgnore
	public void setStamp(Date stamp) {
		this.stamp = stamp;
	}
	
	@JsonProperty("localUrl")
	public String getLocalURL() {
		return localURL;
	}
	@JsonIgnore
	public void setLocalURL(String localURL) {
		this.localURL = localURL;
	}
	
	@JsonIgnore
	public BasicWord getWord() {
		return word;
	}
	@JsonIgnore
	public void setWord(BasicWord word) {
		this.word = word;
	}
	@Override
	public String toString() {
		return "ImageInfoUrl [imgId=" + imgId + ", fromURL=" + fromURL
				+ ", fromURLHost=" + fromURLHost + ", fromPageSummary="
				+ fromPageSummary + ", stamp=" + stamp + ", localURL="
				+ localURL + ", word=" + word + "]";
	}
}
